package basic;


public class Daffodil {
	public static void main(String[] args) {
		for (int i = 100; i <= 999; i++) {
			int j = i/100;
			int k = (i-100*j)/10;
			int l = i -(100*j+10*k);
			if(i == j*j*j+k*k*k+l*l*l) {
				System.out.println(i);
			}
		}
	}

}
